import { defineStore } from "pinia"

export const useThemeStore = defineStore({
  persist: {
    enabled: true,
  },
  id: "useThemeStore",
  state: () => {
    return {
      //主题配置
      themeConfig: {
        // 网站变灰控制{重大哀悼节日}
        gray: "gray-theme",
        dark: "dark-theme",
        blue: "blue-theme",
        green: "green-theme",
        red: "red-theme",
        current: "", //当前主题
      },

      // 左侧菜单配置
      slideMenuConfig: {
        //菜单背景色
        slide_menu_bg: "#2f62ff",

        //字体和图标颜色
        slide_menu_font_icon_color: "#2c5700",

        //菜单被选中颜色
        slide_menu_selected_bg: "#2ad61e",
        // 菜单被选中字体和图标颜色
        slide_menu_font_icon_selected_color: "#f80e9a",
      },


    }
  },
  actions: {},
})
